package com.service;

import com.github.pagehelper.PageInfo;
import com.pojo.Parkingcar;
import com.vo.ParkingCarSelectVo;
import com.vo.ParkingCarVo;

import java.util.List;

public interface ParkingCarService {
    public int insertall(ParkingCarVo parkingCarVo);
    /**
     * 查询所有
     */
    public PageInfo<Parkingcar> selectall(ParkingCarSelectVo parkingCarSelectVo);
    /**
     * 修改缴费单外键
     */
    public int updateCarmoneyById(Integer carmoney,Integer id);
    /**
     * 根据场内车俩id查询缴费id
     */
    public int selectCarmoneyByIdInt(Integer id);



    public List<Parkingcar> selectParkingCarByOwnerId(Integer ownerId);
    /*将车位状态改为占用*/
    public int updateParkinglotStateById(Integer id);

    public int updateParkingLotStateByTwo(ParkingCarVo parkingCarVo);

    /**
     * 查询所有
     */
    public List<Parkingcar> selectalls();

    /**
     * 根据id删除
     * @param id
     * @return
     */
    int deleteByPrimaryKey(Integer id);

    /*
    根据id查询
     */
    Parkingcar selectByPrimaryKey(Integer id);
    /**
     * 根据parklotid查询
     */
    Parkingcar selectByparking(Integer id);
}
